<template>
  <div class="message-dialog">
    <el-dialog :before-close="handlePush" :visible.sync="dialog" title="机构备注">
      <el-form :model="form" >
        <el-form-item>
          <el-input v-model="form.username"/>
          <p style="margin:0;font-size:12px;">请填写机构的备注信息</p>
        </el-form-item>
      </el-form>
      <span slot="footer" class="dialog-footer">
        <el-button @click="handlePush">取 消</el-button>
        <el-button type="primary" @click="handlePush">保 存</el-button>
      </span>
    </el-dialog>
  </div>
</template>

<script>
export default {
  props: {
    visibleDialog: {
      type: Boolean,
      default: false
    }
  },
  data() {
    return {
      form: {
        remark: '润和教育添加'
      }
    }
  },
  computed: {
    dialog() {
      return this.visibleDialog
    }
  },
  methods: {
    handlePush() {
      this.$emit('closeRemark')
    }
  }
}
</script>

<style lang="scss">
.message-dialog {
  .el-dialog {
    width:600px;
    border-radius:5px;
    .el-dialog__body{
      margin-bottom:0;
      padding-bottom:0;
    }
  }
}
</style>
